<?php


namespace App\Http\Controllers\Mini\Shop;

use App\Http\Controllers\Controller;
use App\Services\StoreClassService;
use App\Traits\ResourceTrait;

/**
 * 店铺分类接口
 * Class StoresClassController
 * @package App\Http\Controllers\Mini
 */
class StoresClassController extends Controller
{

    public $CateServer;

    public function __construct()
    {
        $this->CateServer = new StoreClassService();
    }


    /**
     * 店鋪分类列表
     * @return array
     */
    public function StoresClassList()
    {
        try {
            return $this->CateServer->getList();
        } catch (\Exception $e) {
            $this->format_error([], $e->getMessage());
        }
    }
}
